//
//  main.c
//  3-31
//
//  Created by mac on 16-4-11.
//  Copyright (c) 2016年 zf. All rights reserved.
//

//
#include <stdio.h>
#include <stdlib.h>
#define max 10
typedef struct sqlist{
    int data[max];
    int length;
}SeqList;

void Initlist(SeqList* L){
    if (L->length>max) {
        printf("error/n");
    }
    L=(SeqList*)malloc(sizeof(SeqList));
    if (!L) {
        printf("error\n");
    }
    L->length=0;
}

int LocateList(SeqList* L,int t){
    int i=1;
    while (i<=L->length&&L->data[i-1]!=t) {
        i++;
    }
    if (L->data[i-1]==t) return 1;
    else return 0;
}

int main(){
    SeqList list;
    LocateList(&list, 2);
    
}
